package com.ruoyi.web.controller.sj.controller;


import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.base.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.sj.domain.Feedback;
import com.ruoyi.sj.mapper.WithdrawMapper;
import com.ruoyi.sj.service.IChangeService;
import com.ruoyi.sj.service.impl.WithdrawServiceImpl;
import com.ruoyi.web.core.base.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sj/change")
public class ChangeController  extends BaseController {

    @Autowired
    private IChangeService iChangeService;

    @RequiresPermissions("sj:withdraw:edit")
    @Log(title = "提现审核", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    @ResponseBody
    public Object withDrawVerification(Long id,String status)
    {
        return toAjax(iChangeService.withDrawVerification(id, status));
    }
}
